extends "../makeboluo-2/makeboluo-2.gd"

func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("每{cd}秒释放全部圣盾，对当前目标周围1格(九宫格)的敌人造成[圣盾层数*炮击]的技能伤害", "圣盾之力", "makeboluo3", 10)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "makeboluo3":
		makeboluo3()
var p3 = 1
func makeboluo3():
	utils.createSkillTextEff("圣盾之力", position)
	var bf = hasBuff("b_shengDun")
	if bf != null:
		if upgraded == 2:
			for i in getCellChas(aiCha.cell, 2, 1):
				azurHurtChara(i, bf.num * att.atk, sys.HurtType.WEAPON, sys.AtkType.SKILL, "圣盾之力", false, p3)
		else:
			for i in getAroundChas(aiCha.cell, false, aiCha):
				azurHurtChara(i, bf.num * att.atk, sys.HurtType.WEAPON, sys.AtkType.SKILL, "圣盾之力", false, p3)
		bf.isDel = true	

